package com.wh.springboot.controller;

import com.wh.springboot.common.Result;
import com.wh.springboot.service.GlobalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 全球疫情地图
 */
@RestController
@RequestMapping("/globalcovid")
public class GlobalEchartsController {
    @Autowired
    private GlobalService globalService;

    /**
     * 查询所有数据
     * @return
     */
    @GetMapping
    public Result queryglobalDate() {
        return Result.success(globalService.list());
    }
}
